@(form: Form[(String,String)])(implicit flash: Flash)

<html>
    <head>
        <title>登陆</title>
        <link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
    </head>
    <body>
        @helper.form(routes.Login.authenticate){
            <h1>Sign in</h1>

            @form.globalError.map{ error =>
                <p class="error">
                    @error.message
                </p>
            }

            @flash.get("success").map{ message =>
                <p class="success">
                    @message
                </p>
            }

            <p>
                <input type="email" name="email" placeholder="Email" id="email" value="@form("email").value"/>
            </p>

            <p>
                <input type="password" name="password" id="password" placeholder="Password"/>
            </p>

            <p>
                <button type="submit" id="loginbutton">Login</button>
            </p>
        }




    </body>
</html>